#include "AI.h"

extern list<WordInfo> word_list;
extern list<WordInfo>::iterator word_it;

extern list<AdditionalInfo> additional_list;
extern list<AdditionalInfo>::iterator additional_it;

extern map<string, PronounInfo> pronoun_map;
extern map<string, PronounInfo>::iterator pronoun_it;

void PronounTag()
{
	AdditionalInfo tmp_AdditionalInfo;

	for(word_it = word_list.begin(); word_it != word_list.end(); word_it++)
	{
		pronoun_it = pronoun_map.find(word_it->word);

		if(pronoun_it != pronoun_map.end())
		{
			tmp_AdditionalInfo.word = pronoun_it->second.word;
			tmp_AdditionalInfo.type = pronoun_it->second.type;

			additional_list.push_back(tmp_AdditionalInfo);
		}
	}
}